package one.stand.fallback;

import one.stand.entity.TokenEntity;
import one.stand.feign.LoginFegin;
import one.stand.model.ResultModel;
import one.stand.request.WxLoginRequest;
import one.stand.response.BusinessCardResponse;
import one.stand.response.LoginResponse;
import org.springframework.stereotype.Component;

/**
 * @author Administrator
 */
@Component
public class LoginFallBack implements LoginFegin {

    @Override
    public ResultModel<TokenEntity> getLoginInfo(String token) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<LoginResponse> loginByWeixin(WxLoginRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> loginVerification(String token) {
        ResultModel resultModel=ResultModel.faultTolerant();
        resultModel.setT(false);
        return resultModel;
    }

    @Override
    public ResultModel<BusinessCardResponse> userInfo(Long userId) {
        return ResultModel.faultTolerant();
    }

}
